export default{
    namespaced:true,
    state:{
        headershow:true,
        detailTabbarshow:false
    },
    mutations:{
        Changeheader(state,playload){

            let list =['index','list','me','shopcar']
            let type =list.includes(playload)
            let detaillist =['detail','shangpin']
            let detailtype = detaillist.includes(playload)
            // console.log(detailtype)
            if(type){
                state.headershow= true;
                state.detailTabbarshow=false;
            }else if(detailtype){
                state.headershow=false;
                state.detailTabbarshow=true;
            }else{
                state.headershow=false;
                state.detailTabbarshow=false;
            }
        }
    },
    actions:{
        Changeheader(context,payload){
            context.commit('Changeheader',payload)
        }
    }
}